home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / galaxy / galaxy.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  5.0 KB  |  130 lines  |  [TEXT/ttxt]

  1.  
  2.             Galaxy - Copyright (C) by F. Ciucci & A. Fasce 1998/99
  3.  
  4.  
  5. This applet generates various kinds of realtime "galaxy" effects.
  6.  
  7. *************************************************************************
  8.  
  9. NECESSARY FILES.
  10.  
  11. Apart from an optional overlay image, the following 3 ".class" files
  12.  must be uploaded: 
  13.  
  14. galaxy.class
  15. Lware.class
  16. anfy.class
  17.  
  18. Plus, galaxy.jar for speedy loading on recent browsers.
  19.  
  20. *************************************************************************
  21.  
  22. EXAMPLE.
  23.  
  24. Insert the <applet> tag in your html document as follows to add this applet
  25. to your page (Comments after the ";" symbol are code descriptions and
  26. acceptable min/max values. They are not part of the applet language):
  27.  
  28.  
  29. <applet archive="galaxy.jar" code="galaxy.class" width="240" height="150">
  30. <param name="credits" value="Applet by Andrea Fasce (www.anfyteam.com)">
  31. <param name="regcode" value="NO">         ; Registration code (if you have it)
  32. <param name="reglink" value="NO">         ; Optional URL link when the applet
  33.                                           is "clicked".
  34. <param name="regnewframe" value="YES">      ; Reglink opened in new frame?
  35. <param name="regframename" value="_blank">  ; Name of new frame for reglink
  36. <param name="statusmsg" value="Galaxy applet">  ; Statusbar message
  37. <param name="particles" value="5">           ; Particles mode (0..7)
  38. <param name="random" value="0">              ; Random effect ("0"=no, "1"=yes)
  39. <param name="script" value="1">              ; Script number (0 .. 11)
  40. <param name="gpalette" value="0">            ; Palette (0 .. 5)
  41. <param name="persist" value="6">             ; Persistence (0 .. 128)
  42. <param name="dinamic_persist" value="0.0">   ; Dynamic pers. (0.0 .. 126.0)
  43. <param name="dinamic_min" value="4">         ; Min. persistence (1 .. 127)
  44. <param name="dinamic_max" value="16">        ; Max. persistence (1 .. 127)
  45. <param name="overimg" value="NO">            ; Optional image over applet
  46. <param name="overimgX" value="0">            ; Over image X offset
  47. <param name="overimgY" value="0">            ; Over image Y offset
  48. <param name="memdelay" value="1000">         ; Memory de-allocation delay
  49. <param name="priority" value="3">            ; Task priority (1..10)
  50. <param name="fixnetscape" value="NO">        ; Fix Netscape 3.0 bug ("YES","NO")
  51. <param name="MinSYNC" value="10">            ; Min. milliseconds/frame for sync
  52. Sorry, your browser doesn't support Java.  ; Message for no java browsers.
  53. </applet>                                  ; End of applet tag
  54.  
  55.  
  56. **************************************************************************
  57.  
  58. INSTRUCTIONS.
  59.  
  60.  
  61. The following instructions describe how to change parameters:
  62.  
  63. Attempting to change the credits parameter will disable the applet.
  64.  
  65. To activate the reg parameters read the shareware registration notes.
  66. In the "regcode" parameter, place the registration code you purchased
  67.  from the author. If the code is correct and the applet is run from
  68. the registered domain name, you can use "link" parameters to link to a URL
  69. when the applet is mouse-clicked.
  70.  
  71. If you set "regnewframe" to "YES", you can specify a specific frame location
  72. for the reglink:
  73.  
  74. "_blank"  : To load the link in a new blank unnamed browser window.
  75. "_self"   : To load the link into the same window the applet occupies.
  76. "_parent" : To load the link into the immediate FRAMESET parent.
  77. "_top"    : To load the link into the top body of the window.
  78.  
  79. You can also set a custom frame name, such as "myframe1".
  80.  
  81. With the "overimg" parameter you can specify the name of an image that will
  82. be painted over the applet. The best options are transparent GIF images.
  83. NOTE: Animated GIF images are supported, but will be animated only on latest
  84.  browsers (Netscape 4 and Explorer 4 or newer).
  85.  
  86. With "overimgX" and "overimgY" you can center the image over the applet area.
  87.  
  88. The size of the applet is determined by the "width" and "height" tags.
  89.  
  90. With "particles" parameter you choose the particle mode from values from 0 
  91. to 7.
  92.  
  93. With "random" parameter set to "1", a random effect will be displayed. If you
  94. instead set it to "0", the effect selected by the "script" parameter will be
  95. displayed. Here are the abailable "script" parameter values:
  96.  
  97.  
  98.  0 - Circular Galaxy
  99.  1 - Sphere -> Ring
  100.  2 - Tubular Galaxy
  101.  3 - Spiral Galaxy
  102.  4 - Rotating System
  103.  5 - Into Sphere
  104.  6 - Supernova
  105.  7 - Sphere -> Tubular
  106.  8 - Wave -> Atom
  107.  9 - Cone -> Wave
  108.  10 - All effects one color
  109.  11 - All effects all colors
  110.  
  111.  
  112. With "gpalette" parameter (0 .. 5), you choose the palette of a galaxy:
  113.  
  114.  0 = white
  115.  1 = blue
  116.  2 = red->black
  117.  3 = red->violet
  118.  4 = green
  119.  5 = red->white
  120.  
  121. You can enable the light persistence, setting "persist" to a value higher
  122. than 0. The max is 128, but the best results are arond 20.
  123.  
  124. You can set a persistence variation too, placing a value higher than 0.0 in
  125. the "dinamic_persist" parameter. It accepts float values: 0.5 , 1.3 etc.
  126. This value will be a "speed" of transition between the min and max persistence
  127. set with "dinamic_min" and "dinamic_max" parameters.
  128.  
  129. Of course, min must be smaller than max!
  130.